<template>

</template>
<script>
import Human from "./Human";
import Humans from "./Humans";
import { Collection } from "../index";

export default {
  data: function() {
    return {
      human: new Human({ name: "亚当", age: 12, sex: "male" }),
      humans: new Humans()
    };
  },

  created: function() {
    console.log(this.human);
    this.collection.add(this.human);
    console.log(this.collection.toArray());
    this.collection.add(this.human);
    console.log(this.collection.toArray());
  }
};
</script>
